import vue from '@vitejs/plugin-vue'
import createAutoImport from './auto-import'
import createEslintPlugin from './eslint-plugin'
import createSvgIcon from './svg-icon'
import svgLoaderPlugin from './svg-loader'
import createVitePWA from './vite-pwa'
import createVueJsxPlugin from './vue-jsx'

export default function createVitePlugins() {
  const vitePlugins = [vue()]
  vitePlugins.push(createAutoImport())
  vitePlugins.push(createEslintPlugin())
  vitePlugins.push(createSvgIcon())
  vitePlugins.push(svgLoaderPlugin())
  vitePlugins.push(createVitePWA())
  vitePlugins.push(createVueJsxPlugin())
  return vitePlugins
}
